/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package all_pet_iv.database;

import java.sql.*;

/**
 *
 * @author Daniel
 */
public class Conexao {
    public static Connection getConexao() throws SQLException {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            return DriverManager.getConnection("jdbc:mysql://localhost/db_allpet", "root", "");
        } catch (ClassNotFoundException e) {
            throw new SQLException(e.getMessage());

        }

    }


}
